FROM danisla/hadoop:2.9.0

#if you want to open Cross-Site Request Forgery Prevention,just build it
ADD crossdomain.xml /usr/local/hadoop-2.9.0/share/hadoop/yarn/webapps/ui2/
ADD hadoop-hdfs-2.9.0.jar /usr/local/hadoop-2.9.0/share/hadoop/httpfs/tomcat/webapps/webhdfs/WEB-INF/lib/
ADD hadoop-hdfs-2.9.0.jar /usr/local/hadoop-2.9.0/share/hadoop/hdfs
ADD explorer.js /usr/local/hadoop-2.9.0/share/hadoop/hdfs/webapps/hdfs/
CMD ["/bin/bash", "/tmp/hadoop-config/bootstrap.sh","-d"]